package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 教师对象 yy_teacher
 *
 * @author ruoyi
 * @date 2024-03-12
 */
public class YyTeacher extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 教师名称 */
    @Excel(name = "教师名称")
    private String teaName;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String phone;

    /** 学历 */
    @Excel(name = "学历")
    private String xueli;

    /** 工作年限 */
    @Excel(name = "工作年限")
    private String jingyan;

    private boolean flag;

    private Long userId;


    private Integer roleId;

    private String pAccount;

    private String pPassword;

    public String getpAccount() {
        return pAccount;
    }

    public void setpAccount(String pAccount) {
        this.pAccount = pAccount;
    }

    public String getpPassword() {
        return pPassword;
    }

    public void setpPassword(String pPassword) {
        this.pPassword = pPassword;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    /** 退休时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "退休时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date tuixiu;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setTeaName(String teaName)
    {
        this.teaName = teaName;
    }

    public String getTeaName()
    {
        return teaName;
    }
    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }
    public void setXueli(String xueli)
    {
        this.xueli = xueli;
    }

    public String getXueli()
    {
        return xueli;
    }
    public void setJingyan(String jingyan)
    {
        this.jingyan = jingyan;
    }

    public String getJingyan()
    {
        return jingyan;
    }
    public void setTuixiu(Date tuixiu)
    {
        this.tuixiu = tuixiu;
    }

    public Date getTuixiu()
    {
        return tuixiu;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("teaName", getTeaName())
            .append("phone", getPhone())
            .append("xueli", getXueli())
            .append("jingyan", getJingyan())
            .append("tuixiu", getTuixiu())
            .toString();
    }
}
